<html>
<head><meta charset="utf-8"><title>Default linked libraries · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html">Default linked libraries</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204260249"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204260249" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204260249">(Jul 17 2020 at 21:16)</a>:</h4>
<p>I have a weird setup with a crate using C code that also provides compat symbols like pthread_create on Windows. This change broke it: <a href="https://github.com/rust-lang/rust/commit/a32e3408bf061787d81eac9d8bfdd5874efd56a6">https://github.com/rust-lang/rust/commit/a32e3408bf061787d81eac9d8bfdd5874efd56a6</a> and there doesn't seem to be a way around this for me.<br>
Now, more generally, how does rust adding libraries like that on its own factor with trying to do barebones no_std programs?</p>



<a name="204270055"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204270055" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204270055">(Jul 17 2020 at 23:14)</a>:</h4>
<p>Did it work before <a href="https://github.com/rust-lang/rust/pull/67502">https://github.com/rust-lang/rust/pull/67502</a>? Commit that you linked should only bring back old behaviour.<br>
no_std is something that <span class="user-mention" data-user-id="123856">@Vadim Petrochenkov</span> warned about already: <a href="https://github.com/rust-lang/rust/issues/72241#issuecomment-633054265">https://github.com/rust-lang/rust/issues/72241#issuecomment-633054265</a></p>



<a name="204291337"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204291337" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204291337">(Jul 18 2020 at 08:32)</a>:</h4>
<p>It worked with 1.42. I guess that's before <a href="https://github.com/rust-lang/rust/pull/67502">https://github.com/rust-lang/rust/pull/67502</a> ?</p>



<a name="204291351"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204291351" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204291351">(Jul 18 2020 at 08:33)</a>:</h4>
<p>(found a workaround in my code, FWIW)</p>



<a name="204301794"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204301794" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204301794">(Jul 18 2020 at 14:03)</a>:</h4>
<p>Yeah, <a href="https://github.com/rust-lang/rust/issues/67502">#67502</a> was included starting with 1.44.</p>



<a name="204302597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Default%20linked%20libraries/near/204302597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> mati865 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Default.20linked.20libraries.html#204302597">(Jul 18 2020 at 14:29)</a>:</h4>
<p>Anyway we should really move libgcc linkage back to libunwind.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>